home *** CD-ROM | disk | FTP | other *** search
/ PC Pro 1997 December / PC Pro December 1997 CD-Rom coverdisc.iso / symantec / dbAnywh / JAVA.BIN / CLASSES.ZIP / sun / tools / debug / StackFrame.class (.txt) < prev   
Encoding:
Java Class File  |  1996-12-14  |  1.1 KB  |  24 lines

  1. package sun.tools.debug;
  2.  
  3. public class StackFrame {
  4.    Class clazz;
  5.    String className;
  6.    String methodName;
  7.    // $FF: renamed from: pc int
  8.    int field_0;
  9.    int lineno;
  10.    LocalVariable[] localVariables;
  11.  
  12.    public String toString() {
  13.       if (this.field_0 == -1) {
  14.          return this.className + "." + this.methodName + " (native method)";
  15.       } else if (this.lineno == -1) {
  16.          return this.className + "." + this.methodName + " (pc " + this.field_0 + ")";
  17.       } else {
  18.          int var1 = this.className.lastIndexOf(46);
  19.          String var2 = var1 >= 0 ? this.className.substring(var1 + 1) : this.className;
  20.          return this.className + "." + this.methodName + " (" + var2 + ":" + Integer.toString(this.lineno) + ")";
  21.       }
  22.    }
  23. }
  24.